package com.mblog.comment.dao;

import com.mblog.comment.entity.MBlogComment;
import java.util.List;
import java.util.Map;

public interface MBlogCommentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MBlogComment record);

    MBlogComment selectByPrimaryKey(Integer id);

    List<MBlogComment> selectAll();
    
    List<MBlogComment> selectAllComments(Map<String,Object> map);
    
    MBlogComment selectCommentsByParentid(int id);

    int updateByPrimaryKey(MBlogComment record);
    
    int  selectMaxSortByBlogId(Map<String,Object> map);
}